package com.example.order.message;

import org.springframework.cloud.stream.annotation.Input;
import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;
import org.springframework.stereotype.Component;

public interface StareamClient {
    String INPUT = "myMessage";
    String OUTPUT = "ouput";

    String INPUT2 = "myMessage2";

    @Input(StareamClient.INPUT)
    SubscribableChannel input();

    @Output(StareamClient.OUTPUT)
    MessageChannel output();

    @Input(StareamClient.INPUT2)
    SubscribableChannel input2();

    @Output(StareamClient.INPUT2+"2")
    MessageChannel output2();

}
